/*******************************************************************************
 * @project: CDMS_12
 * @package: com.esoon.cdms.actions
 * @file: CdmsAction.java
 * @author: Administrator
 * @created: 2017-6-12
 * @purpose:
 * 
 * @version: 1.0
 * 
 * Revision History at the end of file.
 * 
 * Copyright 2017 AcconSys All rights reserved.
 ******************************************************************************/

package com.esoon.cdms.actions;

import javax.swing.Icon;
import javax.swing.ImageIcon;

import com.esoon.cdms.ui.CdmsUI;
import com.mentor.chs.plugin.IXApplicationContext;
import com.mentor.chs.plugin.action.IXLogicAction;

public class CdmsAction implements IXLogicAction{

	@Override
	public boolean execute(IXApplicationContext context) {
		
		new CdmsUI(context);
		return false;
	}

	@Override
	public String getLongDescription() {
		// TODO Auto-generated method stub
		return getDescription();
	}

	@Override
	public Integer getMnemonicKey() {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public Icon getSmallIcon() {
		// TODO Auto-generated method stub
//		return null;
		return new ImageIcon("D:/eclipse_wks/CDMS_12/files/logo.ico");
	}

	@Override
	public Trigger[] getTriggers() {
		return Trigger.values();
	}

	@Override
	public boolean isReadOnly() {
		// TODO Auto-generated method stub
		return false;
	}

	@Override
	public String getDescription() {
		return "用来管理设计与库之间的同步关系";
	}

	@Override
	public String getName() {
		return "CDMS-12";
	}

	@Override
	public String getVersion() {
		return "0.1";
	}

	@Override
	public boolean isAvailable(IXApplicationContext arg0) {
		return true;
	}

}


/*******************************************************************************
 * <B>Revision History</B><BR>
 * [type 'revision' and press Alt + / to insert revision block]<BR>
 * 
 * 
 * 
 * Copyright 2017 AcconSys All rights reserved.
 ******************************************************************************/